import java.util.ArrayList;
import java.util.List;

//自动扩容
public class Demo10 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>(10);
        for (int i = 0; i < 100; i++) {
            list.add("hello");
        }
        System.out.println(list);
    }
}
